class Comment {

	Person person
	Report report
	String title
	String content
	
	static belongsTo = [report:Report, person:Person]

	static mapping = {
		table 'comment'
		columns {
        		person column:'person'
			report column:'report'
		}
	}	


	static constraints = {
		person(nullable:false)
		report(nullable:false)
		title()
		content(maxSize:2000)
	}
}
